<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <title>${sp.html_head_title}</title>
    <meta name="referrer" content="no-referrer" />
    <meta name="Keywords" Content="${sp.html_head_Keywords}" />
    <meta name="Description" Content="${sp.html_head_Description}" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- 系统ICO图标 -->
    <link href="<%=request.getContextPath()%>/img/zico.ico" rel="shortcut icon" type="image/x-icon"
          media="screen,print" />

    <!-- 引用小图标 -->
    <link href="<%=request.getContextPath()%>/js/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"
          type="text/css" media="screen,print" />

    <!-- 添加jQuery -->
    <script src="<%=request.getContextPath()%>/js/jquery-3.3.1.min.js"></script>

    <!-- 添加BootStrap -->
    <script src="<%=request.getContextPath()%>/js/bootstrap-4.6.0/js/popper.min.js"
            type="text/javascript"></script>
    <link href="<%=request.getContextPath()%>/js/bootstrap-4.6.0/css/bootstrap.min.css" rel="stylesheet"
          type="text/css" media="screen,print" />
    <script src="<%=request.getContextPath()%>/js/bootstrap-4.6.0/js/bootstrap.min.js"
            type="text/javascript"></script>

    <!-- EasyUI -->
    <script type="text/javascript"
            src="<%=request.getContextPath()%>/js/jquery-easyui-1.8.8/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="<%=request.getContextPath()%>/js/jquery-easyui-1.8.8/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript"
            src="<%=request.getContextPath()%>/js/jquery-easyui-1.8.8/plugins/jquery.datagrid.js"></script>

    <c:if test="${empty zuser.z_themes}">
        <link href="<%=request.getContextPath()%>/js/jquery-easyui-1.8.8/themes/gray/easyui.css"
              rel="stylesheet" type="text/css" media="screen,print" />
    </c:if>
    <c:if test="${not empty zuser.z_themes && zuser.z_themes!=''}">
        <link href="<%=request.getContextPath()%>/js/jquery-easyui-1.8.8/themes/${zuser.z_themes}/easyui.css"
              cc="${zuser.z_themes}" rel="stylesheet" type="text/css" media="screen,print" />
    </c:if>

    <!-- cookie操作工具 -->
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.cookie.js"></script>

    <!-- 添加平台公用js css -->
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/z.js?version=${sp.zversion}"
            charset="UTF-8"></script>
    <link href="<%=request.getContextPath()%>/js/z.css?version=${sp.zversion}" rel="stylesheet" type="text/css"
          media="screen,print" />

    <%--常用信息--%>
    <input type="hidden" id="now_user_zid" value="${zuser.zid}">
    <input type="hidden" id="now_user_name" value="${zuser.user_name}">
    <input type="hidden" id="isLock" value="${isLock}">
    <input type="hidden" id="all_menu" value='${all_menu}'>
    <input type="hidden" id="user_all_menu_list" value='${user_all_menu_list}'>
    <input type="hidden" id="menuTreeList" value='${menuTreeList}'>
    <input type="hidden" id="isMSN" value="${sp.isMSN}">
    <input type="hidden" id="serverip" value="${sp.serverip}">
    <input type="hidden" id="isSSL" value="${sp.isSSL}">
    <input type="hidden" id="ice_url" value="${sp.ice_url}">
    <input type="hidden" id="ice_username" value="${sp.ice_username}">
    <input type="hidden" id="ice_password" value="${sp.ice_password}">

    <!-- 处理不同浏览器采集视频方法名不相同问题 -->
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/webrct/adapter.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/zim.js?version=${sp.zversion}"
            charset="UTF-8"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/zhead.js?version=${sp.zversion}"
            charset="UTF-8"></script>

</head>

<body class="easyui-layout" id="zmain_easyui_layout">


<!-- 菜单区域 -->
<div id="menu_title_div" data-options="region:'west',collapsible:'false'"
     style="width: 18%;background:#304156">
    <div class="container-fluid" style="overflow-x:hidden">
        <div class="row m-1">
            <div class="col-10">
                <img src="./img/web/logo_w300_b.png?version=${sp.zversion}" class="m-2 pt-2" style="height: 60px;" alt="Logo">
            </div>
            <div class="col-2">
                <button type="button" class="btn btn-light"
                        onclick="$('#zmain_easyui_layout').layout('collapse','west')"><i class="fa fa-dedent"
                                                                                         style="font-size:25px;color:#BFC9D9;"></i></button>
            </div>
        </div>
        <hr>
        <div class="row m-1">
            <samp style="color:#BFC9D9;font-size: 20px;font-weight:lighter;">尊敬的 ${zuser.user_name} 您好！</samp>
        </div>
        <hr>
        <div class="row">
            <div id="SideMenuTree" class="easyui-sidemenu"
                 data-options="data:menuTreeList,border:false,onSelect:MenuTreeSelect,multiple:false"
                 style="width: 100%"></div>
        </div>
    </div>
</div>
<!-- 主页面区域 -->
<div data-options="region:'center',border:false">

    <div class="container-fluid" style="height: 5%;">
        <div class="row">
            <div class="col-4 text-left p-0">
                <nav aria-label="breadcrumb ">
                    <ol id="BreadcrumbBox" class="breadcrumb bg-white">
                    </ol>
                </nav>
            </div>
            <div class="col-8 mt-1 text-right">
                <div class="btn-group" role="group" aria-label="Button group with nested dropdown">
                    <c:if test='${zuser.zid==sp.super_user}'>
                        <div class="btn-group" role="group">
                            <button type="button" class="btn btn-light dropdown-toggle"
                                    data-toggle="dropdown" aria-expanded="false"><i class="fa fa-gears"></i>
                                开发管理</button>
                            <div class="dropdown-menu">
                                <button type="button" class="btn btn-light"
                                        onclick="addTab('表单管理','list?tableId=z_form','fa fa-window-restore','from_system')"><i
                                        class="fa fa-window-restore"></i> 表单管理</button>
                                <button type="button" class="btn btn-light"
                                        onclick="addTab('HTTP接口','list?tableId=z_http_services','fa fa-server','http_service_system')"><i
                                        class="fa fa-server"></i> HTTP接口</button>
                                <button type="button" class="btn btn-light"
                                        onclick="addTab('报表管理','list?tableId=z_report','fa fa-bar-chart','report_system')"><i
                                        class="fa fa-bar-chart"></i> 报表管理</button>
                                <button type="button" class="btn btn-light"
                                        onclick="addTab('流程定义','list?tableId=z_workflow','fa fa-usb','workflow_system')"><i
                                        class="fa fa-usb"></i> 流程定义</button>
                                <button type="button" class="btn btn-light"
                                        onclick="addTab('字典管理','list?tableId=z_code','fa fa-braille','code_system')"><i
                                        class="fa fa-braille"></i> 字典管理</button>
                                <div class="dropdown-divider"></div>
                                <button type="button" class="btn btn-light"
                                        onclick="addTab('任务管理','list?tableId=z_job','fa fa-map-pin','job_system')"><i
                                        class="fa fa-map-pin"></i> 任务管理</button>
                                <div class="dropdown-divider"></div>
                                <button type="button" class="btn btn-light" onclick="RestartTomcat()"><i
                                        class="fa fa-power-off"></i> 重启Tomcat</button>
                                <button type="button" class="btn btn-light" onclick="AutoUpdate()"><i
                                        class="fa fa-refresh"></i> 系统升级</button>
                                <div class="dropdown-divider"></div>
                                <button type="button" class="btn btn-light"
                                        onclick="addTab('设置系统参数','list?tableId=z_sp','fa fa-gears','SetSystemParameter')"><i
                                        class="fa fa-gears"></i> 系统参数设置</button>
                                <button type="button" class="btn btn-light" onclick="LoadParameter()"><i
                                        class="fa fa-refresh"></i> 更新缓存</button>
                                <button type="button" class="btn btn-light" onclick="LoadZSParameter()"><i
                                        class="fa fa-refresh"></i> 更新节点缓存</button>
                            </div>
                        </div>
                    </c:if>
                    <button type="button" class="btn btn-light"
                            onclick="addTab('待办任务','rlist?zid=2a3810a816b847o2rp4arzd21a2e125178tfc219731e172317241514163008','fa fa-tags','2a3810a816b847o2rp4arzd21a2e125178tfc219731e172317241514163008');"><i
                            class="fa fa-tags"></i> 待办任务</button>
                    <button type="button" class="btn btn-light"
                            onclick="addTab('设置','user_settings','fa fa-sliders','user_settings');"><i
                            class="fa fa-sliders"></i> 设置</button>
                    <button type="button" class="btn btn-light" onclick="locking();"><i
                            class="fa fa-unlock-alt"></i> 锁屏</button>
                    <button type="button" class="btn btn-light" id="handleFullScreenButton"
                            onclick="handleFullScreen();"><i class="fa fa-arrows-alt"></i> 全屏</button>
                    <button type="button" class="btn btn-light" onclick="UserExit();"><i
                            class="fa fa-power-off"></i> 退出</button>
                </div>
            </div>

        </div>
    </div>

    <div id="myTab" class="easyui-tabs" style="height: 95%">
        <c:if test='${sp.is_show_index==true}'>
            <div title=" 首    页 " iconCls="fa fa-home">
                <iframe src="main_index" id="index_iframe" name="MainIndex" scrolling="auto" frameborder="0"
                        style="width:100%;height:100%;"></iframe>
            </div>
        </c:if>
    </div>
</div>
<style>
    /* 修改左菜单样式  开始 */
    .sidemenu .accordion .accordion-header {
        color: #BFC9D9;
        margin-left: 30px;
    }

    .sidemenu .accordion-header .panel-title {
        height: 40px;
        line-height: 40px;
        background-color: #304156;
        color: #BFC9D9;
        font-size: 18px;
        font-weight:lighter;
    }

    .sidemenu .accordion-header:hover {
        background: #304156;
        color: #BFC9D9;
    }

    .sidemenu .tree-node-hover {
        background: #1F2D3D;
        color: #BFC9D9;
    }

    .accordion {
        background: #304156;
        font-size: 20px;
    }

    .sidemenu .tree-node {
        color: #BFC9D9;
        background-color: #1F2D3D;
        padding-left: 40px;
        height: 46px;
    }

    .sidemenu .tree-node:hover {
        background: #02172e;
        color: #BFC9D9;
    }

    .tree-title {
        font-size: 16px;
    }

    .tree-icon {
        font-size: 18px;
        width: 26px;
        height: 19px;
        margin-top: 5px;
    }

    .panel-icon {
        left: -5px;
        width: 20px;
        height: 20px;
        margin-top: -10px;
    }
    .layout-expand{
        background-color:#304156;
    }
    .sidemenu .tree-node-nonleaf::after{
        right: 23px;
    }
    /* 修改左菜单样式  结束 */
</style>
<%@include file="/views/common/main/main_body.jsp" %>
</body>

</html>